<template>
    <van-nav-bar title="详情" left-text="返回" left-arrow @click-left="() => { $router.push('/home/index') }" fixed="" />
    <div v-html="detailhdata.goods_introduce"></div>
    <van-action-bar>
        <van-action-bar-icon icon="chat-o" text="客服"  />
        <van-action-bar-icon icon="cart-o" text="购物车" />
        <van-action-bar-icon icon="shop-o" text="店铺"  />
        <van-action-bar-button type="warning" text="加入购物车" @click="gwc" />
        <van-action-bar-button type="danger" text="立即购买" />
    </van-action-bar>

</template>

<script setup>
import { useRoute } from 'vue-router';
const route = new useRoute()
import { ref } from 'vue';
import { detailhApi } from '@/api/api'
let detailhdata = ref([])
detailhApi(route.params.goods_id).then(res => {
    console.log('详情数据', res);
    detailhdata.value = res.data.message
})
</script>

<style lang="scss" scoped></style>